package com.lbfamous.pair3;

import java.time.*;

public class Employee {

    
    private String name;
    private double salary;
    private LocalDate hireDay;

    Employee(String name,double salary,int year,int month,int day){
        this.name = name;
        this.salary = salary;
        this.hireDay = LocalDate.of(year, month, day);
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @return the salary
     */
    public double getSalary() {
        return salary;
    }

    /**
     * @return the hireDay
     */
    public LocalDate getHireDay() {
        return hireDay;
    }

    
    public void raiseSalary(double byPercent) {
        
        double raise = salary * byPercent /100;
        salary +=raise;
    }
}